package modelLayer;

public abstract class Item{
    private String name;
    private double price;
    private int barcode;
    private int quantity;
    //private boolean isOffer = false;
    //private String dateOfOffer;
    //private String endDateOfOffer;

    public Item(String name, double price, int barcode,int quantity){
        this.name = name;
        this.price = price;
        this.barcode = barcode;
        this.quantity = quantity;
    }
    public Item(String name, double price, int barcode){
        this.name = name;
        this.price = price;
        this.barcode = barcode;
    }
    public void setName(String name){this.name = name;}
    public String getName(){return name;}
    public void setPrice(double price){this.price = price;}
    public double getPrice(){return price;}
    public void setBarcode(int barcode){this.barcode = barcode;}
    public int getBarcode(){return barcode;}
   // public void setIsOffer(boolean isOffer){this.isOffer = isOffer;}
   // public boolean getIsOffer(){return isOffer;}
    public void setQuantity(int quantity) {this.quantity = quantity;}
    public int getQuantity() {return quantity;}
   // public void setDateOfOffer(String dateOfOffer){this.dateOfOffer = dateOfOffer;}
   // public String getOfOffer(){return dateOfOffer;}
   // public void setEndOfOffer(String endDAteOfOffer){this.endDateOfOffer = endDateOfOffer;}
   // public String getEndOfOffer(){return endDateOfOffer;}
}
